package com.mayo.feaf.comun;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.ActionBarActivity;

import com.mayo.feaf.MainActivity;
import com.mayo.feaf.R;

public class SplashActivity extends ActionBarActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.splash_loading);
		getSupportActionBar().hide();
		new Handler().postDelayed(new Runnable() {
	        public void run() {
	            Intent intent = new Intent();
	            intent.setClass(SplashActivity.this, MainActivity.class);
	            SplashActivity.this.startActivity(intent);
	            SplashActivity.this.finish();
	        }
	    }, 1500); // splash will show for 3 seconds
	}
	
}